FileExists

Returns True or False to indicate if a file exists.

Syntax

FileExists("FilePath")

Arguments

Argument Description
FilePath Full path to the file. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.

Return value

Value Description
True File exists.
False File does not exist.

Example

If (FileExists("C:\\Testing\\Output.txt") = True) Then

PrintLn("File exists.")

Else

PrintLn("File does not exist.")

End If